package org.example.src;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Scanner;
public class ExpenseRecod extends BaseRecord{
    public ExpenseRecod(RecordType type, String recordId, LocalDateTime creatime) {
        super(type, recordId, creatime);
    }
    private BigDecimal amount;
    private String category;
    private String remark;
    private String remark1;
    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark() {
        Scanner scanner=new Scanner(System.in);
        System.out.println("写出添加的备注");
        remark1=scanner.nextLine();
        remark.concat(remark1);
        this.remark = remark;
    }
}
